package com.shareppy.norman_web;

import org.json.JSONObject;

import com.shareppy.norman.core.entity.AbstractEntity;
import com.shareppy.norman.core.schema.SchemaGenerator;
import com.shareppy.norman.core.util.EntityUtils;

public class JsonSchemaGenerator implements SchemaGenerator {

	@Override
	public <T extends AbstractEntity> String ddl(Class<T> entityClass)
			throws Exception {
		JSONObject ddl = new JSONObject();
		ddl.put("entity-name", EntityUtils.getTableName(entityClass));
		return ddl.toString();
	}
}
